<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <!-- <style>
        /* p{
            position: absolute;
            left: 200px;
            top: 100px;
        }
    </style> */ -->
    <!-- <p>Hello</p> -->
    <!-- <p>2nd Paragraph</p> -->
    <!-- <script src="../js/jquery.3.5.1.js"></script> -->
    <!-- <script>
        // $("p:last").offset({ top: 40, left: 60 });
        // console.log($("p").offset(),$("p").offset().top,$("p").offset().left);
    </script> -->



    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .m111 {
            width: 200px;
            height: 200px;
            background-color: antiquewhite;
        }

        .m22 {
            width: 50px;
            height: 50px;
            position: relative;
            left: 20px;
            top: 20px;
            background-color: sandybrown;
        }
    </style>
    <div class="m111">
        <div class="m22">2222</div>
    </div>
    <script src="../js/jquery.3.5.1.js"></script>
    <script>
        // console.log($(".m22").position())
        $(".m22").position({
            left: "50px",
            top: "50px"
        })
    </script>
</body>

</html>